package com.nlp.visualization.controller.jersey;

import com.nlp.visualization.pojo.AcctUser;
import com.nlp.visualization.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import java.util.List;

@Controller
@Path("/usr")
public class IndexController {
    @Autowired
    private IUserService userService;

    @Path("/show")
    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public List<AcctUser> login() {

        return userService.findAll();
    }

}
